package com.mallcloud.mall.app.mapper;

import com.mallcloud.mall.app.api.entity.dto.AppXglQRCodePaymentLoginDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AppXglQRCodePaymentMapper {

	@Select("SELECT YYYGZ from OPERUSER@POS WHERE MEMO = #{phone}")
	String getCabinetGroupCode(@Param("phone") String phone);

	@Select("SELECT COUNT(1) FROM OPERUSER@POS WHERE MEMO = #{query.phone} AND passwd = #{query.passwordEncrypt}")
	Long merchantLogin(@Param("query") AppXglQRCodePaymentLoginDTO dto);
}
